package com.ruoyi.member.domain;

import java.math.BigDecimal;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 会员等级对象 m_member_level
 * 
 * @author maxianwei
 * @date 2024-01-11
 */
@Data
public class MemberLevel
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 会员等级名称 */
    @Excel(name = "会员等级名称")
    private String name;

    /** 折扣 */
    @Excel(name = "折扣")
    private BigDecimal discount;

    /** 创建人 */
    @Excel(name = "创建人")
    private String createBy;

    /** 创建人 */
    @Excel(name = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("discount", getDiscount())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .toString();
    }
}
